export interface IDictItem {
    id: number
    parentId: number
    name: string
    value: string
    dictCode: null
    hasChildren: boolean
}

export type IDictList = IDictItem[]

export interface IHospitalListFields {
    hoscode?: string
    hosname?: string
    hostype?: string
    provinceCode?: string
    cityCode?: string
    districtCode?: string
    status?: 0 | 1
}
/**
 * 获取医院列表分页数据请求参数类型
 */
export interface IHospitalListParams extends IHospitalListFields {
    page: number | string
    limit: number | string

}
/**
 * 预约对象类型
 */
export interface IBookingRule {
    "cycle": number,
    "releaseTime": string
    "stopTime": string
    "quitDay": number
    "quitTime": string
    "rule": string[]
}
/**
 * 医院列表 一个医院对象类型
 */
export interface IHospitalItem {
    id: string
    param: {
        hostypeString: string
        fullAddress: string
    },
    hoscode: string
    hosname: string
    hostype: string
    provinceCode: string
    cityCode: string
    districtCode: string
    address: string
    logoData: string
    intro: string
    status: 0 | 1
    bookingRule: IBookingRule | null
    route?:string
}
export type IHospitalList = IHospitalItem[]
/**
 * 医院列表分页数据，响应结果类型
 */
export interface IHospitalListResponse {
    content: IHospitalList
    totalElements: number
}

/**
 * 医院详情 响应体类型
 */
export interface IHospitalDetailResponse {
    bookingRule: IBookingRule
    hospital: IHospitalItem
} 
